package com.heima.test1;

public class Test {
    public static void main(String[] args) {
        Animal animal = new Animal();
        Animal animal2 = new Cat();
        pr(animal);
        pr(animal2);
    }
    public static void pr(Animal animal){
        animal.behave();
    }
}
